package com.zjtaixue.o2o.enums;

import lombok.Getter;

/**
 * 返回结果的枚举
 */
@Getter
public enum ResultEnum  {
    SYSTEM_UNKNOW_ERROR(0,"系统未知异常"),
    REGISTER_SHOP_FAIL(-1,"注册商店失败"),
    IMAGE_IS_NULL(-2,"上传的图片为空"),
    SHOP_INFO_IS_NULL(-3,"请输入完整的店铺信息"),
    IMAGE_CREATE_FAIL(-4,"图片文件创建失败"),
    IMAGE_CHANGE_FAIL(-5,"图片文件流转换失败"),
    CHECKVERIFY_IS_WRONG(-6,"验证码输入错误"),
    QUERY_SHOP_IS_NULL(-7,"找不到店铺信息"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
